module.exports = {
  configureWebpack: {
    externals: {
      "BMap": "BMap"
    }
  },
  devServer: {
    historyApiFallback:true,
    noInfo: true,
    proxy: {
      '/myapi': {
        //是否允许跨域
        changeOrigin: true,
        target: 'http://47.107.86.134:8080',
        // target: 'http://127.0.0.1:8080',
        pathRewrite: {
          '^/myapi':''
        }
      }
    }
  }
}